-
class
c4_Cursor
-
An iterator for collections of rows (views).
- Public:
- c4_Cursor (c4_Sequence& implementation_, int index_);
- Constructs a new cursor.
- c4_RowRef operator* () const;
- Dereferences this cursor to "almost" a row.
- c4_RowRef operator[] (int index_) const;
- This is the same as *(cursor + offset).
- c4_Cursor& operator++ ();
- Pre-increments the cursor.
- c4_Cursor operator++ (int);
- Post-increments the cursor.
- c4_Cursor& operator-- ();
- Pre-decrements the cursor.
- c4_Cursor operator-- (int);
- Post-decrements the cursor.
- c4_Cursor& operator+= (int offset_);
- Advances by a given offset.
- c4_Cursor& operator-= (int offset_);
- Backs up by a given offset.
- c4_Cursor operator- (int) const;
- Subtracts a specified offset.
- int operator- (c4_Cursor cursor_) const;
- Returns the distance between two cursors.
- Friends:
- friend c4_Cursor operator+ (c4_Cursor cursor_, int offset_);
- Adds specified offset.
- friend c4_Cursor operator+ (int offset_, c4_Cursor cursor_);
- Adds specified offset to cursor.
- friend bool operator== (c4_Cursor a_, c4_Cursor b_);
- Returns true if both cursors are equal.
- friend bool operator!= (c4_Cursor a_, c4_Cursor b_);
- Returns true if both cursors are not equal.
- friend bool operator< (c4_Cursor a_, c4_Cursor b_);
- True if first cursor is less than second cursor.
- friend bool operator> (c4_Cursor a_, c4_Cursor b_);
- True if first cursor is greater than second cursor.
- friend bool operator<= (c4_Cursor a_, c4_Cursor b_);
- True if first cursor is less or equal to second cursor.
- friend bool operator>= (c4_Cursor a_, c4_Cursor b_);
- True if first cursor is greater or equal to second cursor.
- friend class c4_Reference;
- friend class c4_Row;
- friend class c4_RowRef;
- friend class c4_View;
- friend class c4_Sequence;
- friend class c4_FilterSeq;
- friend class c4_SortSeq;
- friend bool operator== (c4_RowRef a_, c4_RowRef b_);
- friend bool operator< (c4_RowRef a_, c4_RowRef b_);
#include "k4view.h" // Jun 8, 1997